/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.diagram.classdiagram.editpart;

import java.beans.PropertyChangeListener;

import org.eclipse.draw2d.IFigure;
import org.eclipse.uml2.uml.InstanceSpecification;

import com.cea.papyrus.core.editor.ModelManager;
import com.cea.papyrus.core.editpart.connection.NamedGraphEdgeEditPart;
import com.cea.papyrus.diagram.classdiagram.figures.AssociationFigure;
import com.cea.papyrus.diagraminterchange2.di2.GraphEdge;
import com.cea.papyrus.diagraminterchange2.di2.Uml1SemanticModelBridge;

/**
 * 
 */
public class LinkInstanceSpecificationEditPart extends  NamedGraphEdgeEditPart implements PropertyChangeListener {

	
	/**
	 * 
	 * 
	 * @param graphEdge 
	 * @param modelManager 
	 */
	public LinkInstanceSpecificationEditPart(GraphEdge graphEdge,ModelManager modelManager) {
		super(graphEdge,modelManager);
		
	}

	
	protected IFigure createFigure() {
		AssociationFigure de=new AssociationFigure(AssociationFigure.nothing, AssociationFigure.nothing);
		return de;
	}

	/* (non-Javadoc)
	 * @see com.cea.papyrus.common.editpart.GraphEdgeEditPart#getUmlElement()
	 */
	/**
	 * 
	 * 
	 * @return 
	 */
	@Override
	public InstanceSpecification getUmlElement() {
		return (InstanceSpecification)((Uml1SemanticModelBridge)getGraphEdge().getSemanticModel()).getElement();
	}
}
